import request from '@/utils/request'

// 查询企业专家列表
export function companyList(query) {
    return request({
        url: '/companyLibrary/companyExpert/list',
        method: 'get',
        params: query
    })
}

// 企业专家详细信息
export function companyExpertInfo(query) {
    return request({
        url: '/companyLibrary/companyExpert/' + query,
        method: 'get'
    })
}

//新增企业专家
export function addCompanyExpert(data) {
    return request({
        url: '/companyLibrary/companyExpert',
        method: 'post',
        data: data
    })
}

//批量新增企业专家
export function batchAddCompanyExpert(data) {
    return request({
        url: '/companyLibrary/companyExpert/batchAdd',
        method: 'post',
        data: data
    })
}


//修改企业专家
export function updateCompanyExpert(data) {
    return request({
        url: '/companyLibrary/companyExpert',
        method: 'put',
        data: data
    })
}

//判断是否为专家管理员
export function isCompanyExpertAdmin() {
    return request({
        url: '/companyLibrary/companyExpert/isCompanyExpertAdmin ',
        method: 'get',

    })
}